package com.redijedi.tapestry.pages;

import java.util.ArrayList;
import java.util.List;

import org.apache.tapestry.annotations.Component;

import com.redijedi.tapestry.components.PagedLoop;

/**
 * @author torr
 * 
 */
public class PagedLoopTestPage {

	@SuppressWarnings("unused")
	@Component(parameters = { "source=objectList" })
	private PagedLoop pagedLoop1;

	public List<?> getObjectList() {
		List<Object> objects = new ArrayList<Object>();

		for (int i = 0; i < 1187; i++) {
			objects.add("TEST_" + i);
		}

		return objects;
	}

	private Object object;

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

}
